package net.hasor.dbvisitor.adapter.redis;
import net.hasor.dbvisitor.driver.JdbcDriver;

public class JedisKeys {
    public static final String ADAPTER_NAME        = JdbcDriver.P_ADAPTER_NAME;
    public static final String ADAPTER_NAME_VALUE  = "jedis";
    public static final String START_URL           = JdbcDriver.START_URL + ADAPTER_NAME_VALUE + ":";
    public static final String DEFAULT_CLIENT_NAME = "Jedis-JDBC-Client";

    // for call
    public static final String INTERCEPTOR      = "interceptor";
    public static final String CUSTOM_JEDIS     = "customJedis";
    public static final String UNCHECK_NUM_KEYS = "uncheckNumKeys";
    public static final String SEPARATOR_CHAR   = "separatorChar";

    // for client
    public static final String SERVER          = JdbcDriver.P_SERVER;
    public static final String TIME_ZONE       = JdbcDriver.P_TIME_ZONE;
    public static final String CONN_TIMEOUT    = "connectTimeout";
    public static final String SO_TIMEOUT      = "socketTimeout";
    public static final String USERNAME        = "username";
    public static final String PASSWORD        = "password";
    public static final String DATABASE        = "database";
    public static final String CLIENT_NAME     = "clientName";
    // for pool
    public static final String MAX_TOTAL       = "maxTotal";
    public static final String MAX_IDLE        = "maxIdle";
    public static final String MIN_IDLE        = "minIdle";
    public static final String TEST_WHILE_IDLE = "testWhileIdle";
    public static final String MAX_ATTEMPTS    = "maxAttempts";
}
